package com.snow.test;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
@NoArgsConstructor
public class ChildMap extends ParentMap {

    private String name;

    private String age;

    private int count;

    private BigDecimal totilAmount;

    private BigDecimal noTaxAmount;

    private BigDecimal taxRate;

    @Override
    public String getConditionSameDetailMerger() {
        return name + "::::" + age;
    }

    @Override
    public BigDecimal getParentTaxRate() {
        return taxRate;
    }

    @Override
    public BigDecimal getParentNoTaxAmount() {
        return noTaxAmount;
    }

    @Override
    public BigDecimal getParentTotilAmount() {
        return totilAmount;
    }

    @Override
    public void setParentNoTaxAmount(BigDecimal parentNoTaxAmount) {
        this.noTaxAmount = parentNoTaxAmount;
    }

    @Override
    public void setParentTotilAmount(BigDecimal parentTotilAmount) {
        this.totilAmount = parentTotilAmount;
    }

}
